package com.myway.dto.Result;

import java.io.Serializable;

/**
 * Created by yufei on 2018/7/22.
 */
public class DepartureDate implements Serializable {

    private int year;
    private int day;
    private int month;

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DepartureDate that = (DepartureDate) o;

        if (year != that.year) return false;
        if (day != that.day) return false;
        return month == that.month;
    }

    @Override
    public int hashCode() {
        int result = year;
        result = 31 * result + day;
        result = 31 * result + month;
        return result;
    }
}
